package com.cds.alert.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.cds.alert.dao.AlertAlarmUrlMapper;
import com.cds.alert.ibatis.Criteria;
import com.cds.alert.pojo.AlertAlarmUrl;
import com.cds.alert.service.AlertAlarmUrlService;

@Service("alertAlarmUrlService")
public class AlertAlarmUrlServiceImpl implements AlertAlarmUrlService {
	
	@Autowired
	private AlertAlarmUrlMapper alertAlarmUrlMapper;
	
	@Transactional(readOnly = true)
	public List<AlertAlarmUrl> queryByExample(Criteria example) {
		return alertAlarmUrlMapper.queryByExample(example);
	}
	
	@Transactional(readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = { Exception.class })
	public void insert(AlertAlarmUrl entiry) {
		alertAlarmUrlMapper.insert(entiry);
	}

}
